package co.liyao.yblog.model;

import javax.persistence.*;

@Table(name = "article_category_mapping")
public class ArticleCategoryMapping {
    /**
     * 文章ID
     */
    @Id
    @Column(name = "article_id")
    private Integer articleId;

    /**
     * 分类ID
     */
    @Id
    @Column(name = "category_id")
    private Integer categoryId;

    /**
     * 获取文章ID
     *
     * @return article_id - 文章ID
     */
    public Integer getArticleId() {
        return articleId;
    }

    /**
     * 设置文章ID
     *
     * @param articleId 文章ID
     */
    public void setArticleId(Integer articleId) {
        this.articleId = articleId;
    }

    /**
     * 获取分类ID
     *
     * @return category_id - 分类ID
     */
    public Integer getCategoryId() {
        return categoryId;
    }

    /**
     * 设置分类ID
     *
     * @param categoryId 分类ID
     */
    public void setCategoryId(Integer categoryId) {
        this.categoryId = categoryId;
    }
}